﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace QuickModel.Forms
{
	public partial class TransResultForm : System.Windows.Forms.Form
	{
		public string Title
		{
			get
			{
				return this.Text;
			}
			set
			{
				this.Text = value;
			}
		}

		public string Message
		{
			get
			{
				return this.labelText.Text;
			}
			set
			{
				this.labelText.Text = value;
			}
		}

		public TransResultForm(string strInfo = "")
		{
			this.InitializeComponent();
			base.Icon = Resource.YArchitechIcon;
			this.labelText.Text = strInfo;
		}

		private void button1_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}

		private void TransResultForm_KeyDown(object sender, KeyEventArgs e)
		{
			bool flag = e.KeyCode == Keys.Escape;
			if (flag)
			{
				base.DialogResult = DialogResult.Cancel;
			}
		}
	}
}
